
# coding:utf-8
# coding:utf-8
# coding:utf-8
from __future__ import unicode_literals

from django.db import models
from django.utils.encoding import python_2_unicode_compatible



@python_2_unicode_compatible
class Messagetable(models.Model):
    name = models.CharField('姓名',max_length=20)
    email = models.CharField('邮箱',max_length=20 )
    Message = models.CharField('评论',max_length=300 )

    pub_date = models.DateTimeField('发表时间', auto_now_add=True, editable=True)
    update_time = models.DateTimeField('更新时间', auto_now=True, null=True)

    def __str__(self):
        return self.name

